package dj.tic;

import dj.engine.app.Application;
import dj.engine.screen.Screen;
import dj.engine.util.Vec2f;

public class TicApplication extends Application {
	
	Screen baseScreen;
	
	public TicApplication(String title, boolean fullscreen) {
		super(title, fullscreen);
		baseScreen = new TicTitleScreen(this);
		this.currentScreens.push(baseScreen);
		
	}

	void startGame()
	{
		GameScreen gs = new GameScreen(3, new Vec2f(size.x, size.y));
		this.currentScreens.push(gs);
	}
	
	void pauseGame()
	{
		PauseScreen ps = new PauseScreen();
		this.currentScreens.push(ps);
	}
	
	void quitGame()
	{
		while(!currentScreens.peek().equals(baseScreen))
		{
			currentScreens.pop();
		}
	}
	

	public static void main(String[] args)
	{
		Application tic = new TicApplication("tic", false);
		tic.startup();
	}
}
